﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="QuizSilverlight.QuizForm" 
    Width="400" Height="300" mc:Ignorable="d" Loaded="UserControl_Loaded" >
    <Grid x:Name="quizFormGrid">

        <Grid.RowDefinitions>
            <RowDefinition Height="0.107*"/>
            <RowDefinition Height="0.123*"/>
            <RowDefinition Height="0.17*"/>
            <RowDefinition Height="0.133*"/>
            <RowDefinition Height="0.467*"/>
        </Grid.RowDefinitions>
        <TextBlock Height="18" HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top" Width="114" Text="Répondez au  Quiz :" TextWrapping="Wrap" Foreground="White"/>
        <TextBlock Height="18" HorizontalAlignment="Left" Margin="8,11,0,0" VerticalAlignment="Top" Width="114" Text="Question :" TextWrapping="Wrap" Grid.Row="1" Foreground="White"/>
        <TextBlock Height="18" HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top" Width="123" Text="Réponses possibles :" TextWrapping="Wrap" Grid.Row="3" Foreground="White"/>
        <TextBlock x:Name="tbQuestion" Height="34" HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top" Text="{Binding Body}" TextWrapping="Wrap" Grid.Row="2" Width="376.8" Foreground="White"/>
        <ListBox x:Name="lbAnswers" Grid.Row="4">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <RadioButton Content="{Binding Body}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
       
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,32,17" VerticalAlignment="Bottom" Width="112" Grid.Row="4" Content="Valider la réponse"/>

    </Grid>
</UserControl>
